package com.myshop.entity;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 商品模块的商品实体(Product)表实体类
 *
 * @author makejava
 * @since 2023-07-21 21:06:40
 */
@Data
@Accessors(chain = true)
public class Product implements Serializable {
    @TableId(type = IdType.AUTO)
    //商品的唯一主键
public class Product {
    private static final long serialVersionUID = 183025197060364717L;

    private Integer id;

    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time  = new Date();

    private String image;

    private Object price;

    private String state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Object getPrice() {
        return price;
    }

    public void setPrice(Object price) {
        this.price = price;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}

